home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks96
/
BetterADsecurity.sit
/
Better AD security
/
Source
/
info.cpp
< prev
next >
Wrap
C/C++ Source or Header
|
1996-06-21
|
540b
|
27 lines
#include <iostream.h>
#include "bADs Constants.h"
#pragma options align=mac68k
typedef struct {
long magicNumber;
long versionNumber;
ProcPtr theTable[2];
} ESAddressTable;
#pragma options align=reset
void main(void)
{
ESAddressTable *theAddressTable;
long oldAddr;
Gestalt(kbADsAddressTable, (long *) &theAddressTable);
oldAddr = (long) theAddressTable->theTable[kNewSysError];
cout << "The address table: " << hex << (long) theAddressTable << endl;
cout << "The old SysError: " << hex << oldAddr << endl;
}